<?php

class Dashboard extends Scaff {

    public function __construct() {
        //parent::__construct('');
        
        if (isset($_GET['add']))
        {
            if (!logged_admin()) redirect('login.php');
        }
        else
        {
            if (!logged_admin()) redirect('login.php');
            
            require(view('dashboard'));
        }
    }
    
}


